<template>
<view>
    <jobSelect ref="jobSelect" :listData="listData" @confirem="confiremJob"></jobSelect>
</view>
</template>

<script>
import jobSelect from '@/components/yunmiao-jobSelect/yunmiao-jobSelect.vue'
export default {
    components:{
        jobSelect
    },
    data() {
        return {
            listData: [{
                "id": 1,
                "name": "过户次数",
                "children": [{
                    "id": 2,
                    "name": "0次",
                },{
                    "id": 3,
                    "name": "1次",
                },{
                    "id": 4,
                    "name": "2次以上",
                },
                {
                    "id": 5,
                    "name": "未上牌",
                }]
            },{
                "id": 6,
                "name": "变数箱",
                "children": [{
                    "id": 7,
                    "name": "手动",
                },{
                    "id": 8,
                    "name": "自动",
                },
				]
            },{
                "id":10 ,
                "name": "排量",
                "children": [{
                    "id": 11,
                    "name": "1.0——下",
                },
				{
				    "id": 12,
				    "name": "1.1——1.6L",
				},
				{
				    "id": 13,
				    "name": "1.7——2.0L",
				},
				{
				    "id": 14,
				    "name": "2.1——2.5L",
				},
				{
				    "id": 15,
				    "name": "2.6——3.0L",
				},
				{
				    "id": 16,
				    "name": "3.1——4.0L",
				},
				{
				    "id": 17,
				    "name": "4.0以上",
				}]
            }],
        };
    },
    methods:{
        show() {
            this.$refs.jobSelect.show()
        },
        confiremJob(e){
            console.log(e)
        }
    }
}
</script>
<style lang="scss">
</style>